<?php
/**
 *  view: search home
 *  File: search/home.php
 */
?>


 <div id="f_main">
 	<div class="f_container">
    
    <h3><?php echo lang('search'); ?></h3>
    <div class="block-left search-option">
    	<h4><?php echo lang('advanced_search'); ?></h4>
   	 	<p><?php echo lang('search_by_name'); ?>:</p>
        <form id="filter_form">
    	<input name="filter[name]" type="text" value="<?php if(isset($filter['name'])) echo $filter['name']; ?>" placeholder="<?php echo lang('enter_name'); ?>...">
        <p><?php echo lang('looking_for'); ?>:</p>
            <input name="filter[look_for]" type="radio" value="male" >
        <img src="<?php echo base_url(); ?>img/template/male.png" width="10" height="15" alt="<?php echo lang('male'); ?>" />
        <span><?php echo lang('male'); ?></span>
        
        <input name="filter[look_for]" type="radio" value="female">
        <img src="<?php echo base_url(); ?>img/template/female.png" width="14" height="14" alt="<?php echo lang('female'); ?>" />
        <span><?php echo lang('female'); ?></span>
        <br/>
        <input name="filter[look_for]" type="radio" value="both" checked>
        <span><?php echo lang('both'); ?></span>
        <p><?php echo lang('postal_code'); ?>:</p>
        <select name="filter[postal_code]" id="filter_postal_code" >
            <option value='' selected='selected'><?php echo lang('choose'); ?></option>
            <?php  
//            foreach ($cities as $row)
//            {
//              //$selected = ($row->name == $filter['locaton'])?"selected='selected'":"";
//              $selected = "";
//              echo "<option value='{$row->name}' {$selected} >".lang($row->name)."</option>";
//            }
            for( $i=0;$i<=9;$i++ )
            {
              $selected = ( isset($filter['postal_code']) && $i == $filter['postal_code'])?"selected='selected'":"";
              
              echo "<option value='{$i}' {$selected} >{$i}xxxx</option>";
            }  
            ?>   
        </select>
        <p><?php echo lang('status_line'); ?>:</p>
        <input name="filter[status_line]" type="radio" value="online">
        <span><?php echo lang('online'); ?></span>
        <input name="filter[status_line]" type="radio" value="offline">
        <span><?php echo lang('offline'); ?></span>
        <p><?php echo lang('year_search'); ?>: <input type="text" id="amount" name='filter[year]' style="border: 0; color: #2869AE; font-weight: bold;" /></p>
        <div id="slider-range"></div>
        </form>
            <div class="clr"></div>
        <input class="save" name="" id="submit_search" type="button" value="<?php echo lang('search'); ?>">
    </div><!--end block-left-->
    
    <div class="center" id="search_results">
        <?php $this->load->view('search/search_results');  ?>
    </div><!--end search_results -->    
    
    <!---------------Presents - end code---------------->
    
   
    </div><!--end f_container-->
 </div><!--end f_main-->
 
